﻿using Microsoft.AspNet.SignalR;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace LightSwitchApplication
{
    public class MovementHub: Hub
    {
        public void AddMessage(string message)
        {
            //call method on everyone but the caller
            //Clients.OthersInGroup("place " + groupName).addMessage(message);
            //call method on everyone in group excluding the specified connection ids
            Clients.All.addMessage(message);
        }
    }
}